<!DOCTYPE html>
<html lang="en">
<head>
    <script src="https://cdn.jsdelivr.net/npm/vue@2.6.12"></script>
</head>
<body>
    <div id="app">
        <label for="name">姓名：</label>
        <input v-on:keyup.shift.enter="name" type="text" id="name">
    </div>
    <script>
        new Vue({
            el:'#app',
            methods:{
                name:function(){
                    console.log("正在输入姓名...")
                }
            }
        })
    </script>
</body>
</html>